package com.example.demo.service;

import com.example.demo.entity.Role;
import java.util.List;
import java.util.Map;

public interface RoleService {
    Role createRole(Role role);
    Role updateRole(Role role);
    boolean deleteRole(Integer id);
    Map<String, Object> getRoleList(Integer page, Integer limit, String keyword);
    boolean updateRoleStatus(Integer id, Integer status);

    boolean setRules(Integer id, List<Integer> ruleIds);
    
    List<Map<String, Object>> getAllActiveRoles();
}
